// 严重程度选项
export const SEVERITY_OPTIONS = [
  { label: '严重', value: 'critical', color: 'red' },
  { label: '高', value: 'high', color: 'orange' },
  { label: '中', value: 'medium', color: 'gold' },
  { label: '低', value: 'low', color: 'green' },
]

// 告警状态选项
export const ALERT_STATUS_OPTIONS = [
  { label: '告警中', value: 'firing', color: 'red' },
  { label: '已解决', value: 'resolved', color: 'green' },
  { label: '已确认', value: 'acknowledged', color: 'blue' },
]

// 工单状态选项
export const TICKET_STATUS_OPTIONS = [
  { label: '已创建', value: 'created', color: 'gold' },
  { label: '已分配', value: 'assigned', color: 'blue' },
  { label: '进行中', value: 'in_progress', color: 'cyan' },
  { label: '等待中', value: 'pending', color: 'orange' },
  { label: '已解决', value: 'resolved', color: 'green' },
  { label: '已关闭', value: 'closed', color: 'default' },
  { label: '已重开', value: 'reopened', color: 'purple' },
]

// 优先级选项
export const PRIORITY_OPTIONS = [
  { label: '紧急', value: 'urgent', color: 'red' },
  { label: '高', value: 'high', color: 'orange' },
  { label: '中', value: 'medium', color: 'gold' },
  { label: '低', value: 'low', color: 'green' },
]

// 分页配置
export const PAGE_SIZE_OPTIONS = [10, 20, 50, 100]
export const DEFAULT_PAGE_SIZE = 20

// 刷新间隔（毫秒）
export const REFRESH_INTERVALS = {
  DASHBOARD: 30000, // 30秒
  ALERTS: 15000, // 15秒
  TICKETS: 60000, // 1分钟
  METRICS: 5000, // 5秒
}

// 图表颜色
export const CHART_COLORS = {
  primary: '#1890ff',
  success: '#52c41a',
  warning: '#faad14',
  error: '#ff4d4f',
  info: '#13c2c2',
  purple: '#722ed1',
  cyan: '#13c2c2',
  orange: '#fa8c16',
}

// 日期格式
export const DATE_FORMATS = {
  DATE: 'YYYY-MM-DD',
  TIME: 'HH:mm:ss',
  DATETIME: 'YYYY-MM-DD HH:mm:ss',
  DATETIME_SHORT: 'MM-DD HH:mm',
}

// API 端点
export const API_ENDPOINTS = {
  // 认证
  LOGIN: '/auth/login',
  LOGOUT: '/auth/logout',
  REFRESH_TOKEN: '/auth/refresh',

  // 用户
  USERS: '/users',
  USER_PROFILE: '/users/profile',

  // 告警
  ALERTS: '/alerts',
  ALERT_ACKNOWLEDGE: '/alerts/:id/acknowledge',
  ALERT_RESOLVE: '/alerts/:id/resolve',

  // 工单
  TICKETS: '/tickets',
  TICKET_STATUS: '/tickets/:id/status',
  TICKET_ASSIGN: '/tickets/:id/assign',

  // 知识库
  KNOWLEDGE: '/knowledge',
  KNOWLEDGE_SEARCH: '/knowledge/search',

  // 监控指标
  METRICS: '/prometheus/query',
  METRICS_RANGE: '/prometheus/query_range',

  // 分析
  ANALYTICS: '/analytics',
}
